<template>
	<view>
		<view class="titlebox" :style="[{'background-color':backgroundColor}]">
			<view class="title" :style="[{'width':Width}]">
				<text class="text" 
				:style="[{'font-size':fontSize},{'font-weight':fontWeight},{'color':Color}]"
				>{{title}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			title:{
				type:String,
				default:''
			},
			backgroundColor:{
				type:String,
				default:'rgba(255, 255, 255, .0)'
			},
			Width:{
				type:String,
				default:'690rpx'
			},
			fontSize:{
				type:String,
				default:'36rpx'
			},
			fontWeight:{
				type:String,
				default:'700'
			},
			Color:{
				type:String,
				default:'#000'
			}
		},
		name:"FatFatMeng-Title",
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.titlebox{
		// 除了APPNVUE NVUE下自带flex,不需要自己写
		/* #ifndef APP-NVUE || APP-PLUS-NVUE */
		display: flex;
		view {
			display: flex;
		}
		/* #endif */
		width: 750rpx;
		padding: 20rpx 0;
		justify-content: center;
		align-items: center;
		.title{
			text,.text{
				overflow: hidden!important;
				text-overflow: ellipsis!important;
				white-space: nowrap!important;
			}
		}
	} 
	
	
</style>
